import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm';

@Entity('users')
export class User {
  @PrimaryGeneratedColumn()
  id: number;
  @Column({
    type: 'varchar',
    length: 15,
    default: '',
  })
  phone: string;

  @Column({
    type: 'varchar',
    default: '',
  })
  nickname: string;

  @Column({
    type: 'varchar',
    default: '',
  })
  authorImg: string;

  @CreateDateColumn()
  createdAt: Date;
}
